package cn.supermarket.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;


@Data
public class VipInfoDTO implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 验证请求参数失败的描述文本前缀
     */
    private static final String VALIDATE_MESSAGE_PREFIX = "修改会员失败,";

    /**
     * 会员姓名
     */
    @ApiModelProperty(value = "会员姓名",  dataType = "String", example = "张泽泽")
    private String name;
    /**
     * 会员性别
     */
    @ApiModelProperty(value = "会员性别",  dataType = "String", example = "男")
    private String gender;
    /**
     * 原会员电话
     */
    @ApiModelProperty(value = "原会员电话", required = true, dataType = "String", example = "16666666666")
    @NotNull(message = VALIDATE_MESSAGE_PREFIX + "请填写会员手机号！")
    private String oldPhone;
    /**
     * 新会员电话
     */
    @ApiModelProperty(value = "新会员电话",  dataType = "String", example = "18888888888")
    private String newPhone;
    /**
     * 操作人员
     */
    @ApiModelProperty(value = "操作人员", dataType = "String", example = "admin001")
    private String operator;
    /**
     * 备注
     */
    @ApiModelProperty(value = "备注", dataType = "String", example = "备注")
    private String remarks;
}


